﻿<Window x:Class="Hp.Vertica.Client.SqlToVertica"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SqlToVertica" Height="760" Width="1024" WindowState="Maximized">
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="Background" Value="#FFFFFFFF" />
            <Setter Property="BorderThickness" Value="0"/>
        </Style>
        <TreeViewItem x:Key="treeServer">
            <TreeViewItem.Header>
                <StackPanel Orientation="Horizontal">
                    <Image Name="imgServer" Source="Images/Icons/Light/appbar.monitor.png"/>
                    <Label Content="{Binding Path=Name}" />
                </StackPanel>
            </TreeViewItem.Header>
        </TreeViewItem>
    </Window.Resources>
    <Grid x:Name="gridDocument">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal" DockPanel.Dock="Top" DataContext="{Binding VerticaSource}">
            <Image Source="../Images/img-vertica-logo.png" Height="25" Margin="10,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Center"></Image>
            <Label Content="{Binding Name}" Foreground="Blue" Margin="5,0">
            </Label>
            <Button x:Name="btnEditSource">
                <Image Source="../Images/Icons/Light/appbar.edit.png" Height="25"></Image>
            </Button>
        </StackPanel>
        <Label Grid.Column="0" Grid.Row="1">Database Explorer</Label>
        <StackPanel Grid.Column="0" Grid.Row="2" Orientation="Horizontal">
            <Button x:Name="btnNewConnection">
                <Image Source="../Images/Icons/Light/appbar.add.png" Height="25"></Image>
            </Button>
            <Button x:Name="btnRefresh">
                <Image Source="../Images/Icons/Light/appbar.refresh.png" Height="25"></Image>
            </Button>
        </StackPanel>
        <TreeView Grid.Column="0" Grid.Row="3"  x:Name="panelServers" Margin="2" ItemsSource="{Binding SqlExplorer}"></TreeView>
        <GridSplitter Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Width="3"/>
    </Grid>
</Window>
